package com.java46.admin.base.http;

import java.io.UnsupportedEncodingException;

/**
 * @ClassName: HttpRequestWrapper 
 * @Description: request对象的包装类
 * @author: zuxia
 * @date: 2018年7月4日 下午2:55:57
 */
public class HttpRequestWrapper {

	private HttpRequestWrapper request;

	public HttpRequestWrapper(HttpRequestWrapper request) {
		super();
		this.request = request;
	}
	
	//处理get请求编码异常
	public String getParameter(String name) {
		String value=request.getParameter(name);
		try {
			byte[] bytes=value.getBytes("ISO-8859-1");
			value=new String(bytes,"UTF-8");
		} catch (UnsupportedEncodingException e) {
		}
		return value;
	}
	
}
